CXXFLAGS =	-O2 -g -Wall -fmessage-length=0

OBJS =		secretprovide.o

LIBS = hxglib
TARGET =	out/secretprovide

DIR_SRC = ./src
DIR_OBJ = out

INC = hxglib/src

SRC = $(wildcard ${DIR_SRC}/*.cpp)  
OBJS = $(patsubst %.cpp,${DIR_OBJ}/%.o,$(notdir ${SRC})) 

$(TARGET):	$(OBJS)
	$(CXX) -o $(TARGET) $(OBJS) -l$(LIBS) -L./out
	
${DIR_OBJ}/%.o:${DIR_SRC}/%.cpp
	$(CXX) $(CXXFLAGS) -I$(INC) -c  $< -o $@


all:	$(TARGET)

clean:
	rm -f $(OBJS) $(TARGET)
	